cmake_minimum_required(VERSION 3.27)
project(web)

set(CMAKE_CXX_STANDARD 14)

# 查找线程库
find_package(Threads REQUIRED)

include_directories(client)
include_directories(server)

# 将线程库链接到客户端可执行文件
add_executable(client
        #        client/client1.cpp
        #        client/client2.cpp
        client/client3.cpp)

target_link_libraries(client PRIVATE Threads::Threads)

add_executable(server
        #        server/server1.cpp
        #        server/server2.cpp
        server/epoll_server.cpp
        server/serve.cpp
        server/serve.h
)
